Skip to content

chore: Clean up stale Python 3.10 baseline TODOs#5292

Merged
xrmx merged 3 commits into
open-telemetry:mainfrom
hectorhdzg:hectorhdzg/baselinetodo
Jun 15, 2026
Merged

chore: Clean up stale Python 3.10 baseline TODOs#5292
xrmx merged 3 commits into
open-telemetry:mainfrom
hectorhdzg:hectorhdzg/baselinetodo

Conversation

@hectorhdzg

Copy link
Copy Markdown
Member

The minimum Python version was bumped to 3.10, but a few TODOs guarded by that
baseline were never addressed. This PR cleans them up:

  • opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py: Simplify
    traceback.format_exception() call to use the single-argument form available
    since Python 3.10.
  • opentelemetry-api/tests/metrics/test_meter.py: Replace @patch logger
    mock with assertNoLogs (available since Python 3.10).
  • opentelemetry-sdk/tests/metrics/test_metrics.py: Same assertNoLogs
    conversion.

@hectorhdzg hectorhdzg requested a review from a team as a code owner June 11, 2026 16:32
@hectorhdzg hectorhdzg added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 11, 2026
@github-project-automation github-project-automation Bot moved this to Approved PRs in Python PR digest Jun 12, 2026
@xrmx xrmx added this pull request to the merge queue Jun 15, 2026
Merged via the queue into open-telemetry:main with commit f0a618a Jun 15, 2026
479 checks passed
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Python PR digest Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants